import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant'

import 'vant/lib/index.css';

Vue.use(Vant);

import './assets/css/reset.css'
import "./assets/css/iconfont.css"
// import "./assets/css/iconfont2.css"

import "./assets/js/rem"
import "./filters"


import {CommonComponent} from "./components"
Vue.use(CommonComponent)


Vue.config.productionTip = false

// 图片前缀问题
// console.log(process.env.NODE_ENV) 
// 开发环境:development 生产环境:production
if (process.env.NODE_ENV === 'development') {
  Vue.prototype.$pre = "http://localhost:2000"
}
if (process.env.NODE_ENV === 'production') {
  Vue.prototype.$pre = ""
}






new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
